#include "stl.h"
#include <numeric>
#include "parse.h"
#include "solution.h"
int main(int argc, char *argv[])
{
    string str = "[[\"3\",\"2\",\"3\",\"5\"],[\"4\",\"2\",\"3\",\"4\"],[\"5\",\"2\",\"11\",\"13\"],[\"1000000000\",\"2\",\"217983653\",\"336916467\"]]";
    vector<vector<string>> arr = parseStringArrArr(str);
    for (int i = 0; i < arr.size(); i++)
    {
      vector<string> args = arr[i];
      Solution *s = new Solution();
      int arg0 = parseInteger(args[0]);
      int arg1 = parseInteger(args[1]);
      int arg2 = parseInteger(args[2]);
      int arg3 = parseInteger(args[3]);
      int result=s->nthUglyNumber(arg0,arg1,arg2,arg3);
      string resultabc =serializeInteger(result);
      cout << "resultabc"+to_string(i)+":" << resultabc <<"resultend"<< endl;
    }
    return 0;
}